from os import system
from os import name
from ex48 import lexicon
from ex48 import parser

def clear_scr():
    if(name == 'nt'):
        print 'NT system'
        system('cls')
    else:
        system('clear')

clear_scr()
str = 'kill the princess'
word_list = lexicon.scan(str)

sentence = parser.parse_sentence(word_list)
sentence.print_info()
